< previous page page_393 next page >

Page 393
You can create four possible window arrangement patterns with the Arrange method. Each of these patterns is represented by an intrinsic constant. Table 17.1 summarizes the patterns, and they are illustrated in Figures 17.12 through 17.15.
Table 17.1 Arrangements of MDI Child Windows
ConstantDescription
vbCascadeThe nonminimized forms are arranged in a pattern in which each form is offset slightly from the others.
vbTileVerticalEach nonminimized child form occupies the full height of the parent form, and the child forms are displayed side by side. If you have many child forms, they can occupy multiple rows when tiled.
vbTileHorizontalEach nonminimized child form occupies the full width of the parent form, and the child forms are displayed on top of one another. If you have many child forms, they can occupy multiple columns when tiled.
vbArrangeIconsThe icons of all minimized child forms are arranged near the bottom of the parent form.

0393-01.jpg
Figure 17.12
These child forms have been arranged in a cascade pattern.
Typically, you place the arrangement options in a Window menu on the MDI form. Each arrangement option that you want to support is a separate menu item.
Maintaining a Window List
The other way of providing easy access to the child forms of your application is to maintain a list of the open child forms. Fortunately, this task is easy. You create a window list while you are creating the menu for the MDI parent form. You determine which menu will contain the list and then set that menu item's WindowList property to True in the Menu Editor, as shown in Figure 17.16.

 
< previous page page_393 next page >